package com.bsoft.gol.hbs.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import pcn.consultation.OnlineConsultLanguage;

import java.util.List;

public abstract class OnlineConsultLanguageDAO extends HibernateSupportDelegateDAO<OnlineConsultLanguage> {
    public OnlineConsultLanguageDAO() {
        this.setKeyField("id");
    }


    @DAOMethod(sql=" from OnlineConsultLanguage where objectId=:objectId and objectType=:objectType and status = 1")
    public  abstract List<OnlineConsultLanguage> findOnlineConsultLanguage(@DAOParam("objectId")String objectId, @DAOParam("objectType")String objectType);


}
